class NetworkException implements Exception{

  final int code;

  final String message;

  NetworkException(this.code,this.message);

  @override
  String toString() => 'NetworkException($code): $message';
}